c89816ae96d6c49c57801ebffc74eeca20427ed7,gsonpath-compiler/src/main/java/gsonpath/generator/BaseAdapterGenerator.java,BaseAdapterGenerator,createObjectParser,#number#CodeBlock.Builder#GsonFieldTree#ObjectParserCallback#,71

Before Change


                }

                codeBlock.beginControlFlow("if ($L != null)", safeVariableName);
                codeBlock.addStatement("result.$L = $L$L",
                        fieldInfo.getFieldName(),
                        safeVariableName,
                        callToString ? ".toString()" : "");

                // Inform the callback in case it wishes to add any further code.
                callback.onFieldAssigned(fieldInfo.getFieldName());

After Change


                            adapterName);

                    if (defineVariableType) {
                        codeBlock.addStatement("$L $L", fieldTypeName, variableAssignment);

                    } else {
                        codeBlock.addStatement(variableAssignment);
                    }
                }

                if (defineVariableType) {
                    String fieldName = fieldInfo.getFieldName();
                    codeBlock.beginControlFlow("if ($L != null)", safeVariableName);

                    String assignmentBlock;
                    if (modelAlreadyCreated) {
                        assignmentBlock = "result." + fieldName;
                    } else {
                        assignmentBlock = variableName;
                    }

                    codeBlock.addStatement("$L = $L$L",
                            assignmentBlock,
                            safeVariableName,
                            callToString ? ".toString()" : "");

                    // Inform the callback in case it wishes to add any further code.
                    callback.onFieldAssigned(fieldName);